﻿using OpenWaves.Video.Vimeo;
using OpenWaves.Video.YouTube;

namespace OpenWaves.Video
{
    [DefaultImplementation(typeof(DefaultVideoWebsiteApi))]
    public interface IVideoWebsiteApi
    {
        IVideo GetVideo(string url);
        bool IsSupported(string url);
    }

    public class DefaultVideoWebsiteApi : CompositeVideoWebsiteApi
    {
        public DefaultVideoWebsiteApi()
            : base(new IVideoWebsiteApi[] { new VimeoApi(), new YoutubeApi() })
        {
        }
    }
}